/*******************************************************************************
** CopyRight (c) 2005-2008 SKY-MOBI Ltd. All rights reserved.
** Filename:  .h
** Creator:   yuzhifeng
** Version:   0.0
** Date:      
** Description:
 *******************************************************************************/

#ifndef __ADWIN_H__
#define __ADWIN_H__

#include "commdef.h"
#include "ad.h"

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

#define ADWIN_HEIGHT    28 //SMP_TOOLBAR_HEIGHT
#define ADWIN_WID         201

#if defined(INCLUDE_IN_PLUG_AD_SRC) || defined(SDK_NO_PLUGIN)

extern int32 func_adProc;
extern HWND hAdWin;

LRESULT BottomAD_WinProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);

int32 AD_init(const char* param);

void AD_InsertAdWin(HWND hWnd);
#else

#define AD_init(hWnd) \
		mrc_extSendAppEventEx(MPS_CODE_AD_SHELL, AD_FUNC_INIT, (int32)param, (int32)0, (int32)0, (int32)0, (int32)0)
		
#define AD_InsertAdWin(hWnd) \
		mrc_extSendAppEventEx(MPS_CODE_AD_SHELL, AD_FUNC_INSERTWIN, (int32)hWnd, (int32)0, (int32)0, (int32)0, (int32)0)
#endif

#ifdef __cplusplus
}
#endif  /* __cplusplus */

#endif

